#!/usr/bin/env node

const program = require("commander");
const PKG = require("./package.json");
const actions = require("./actions.js");

program.version(PKG.version);

// program
//   .option("-h,--help")
//   .description("显示帮助")
//   .action(() => {
//     actions.help();
//   });

program
  .command("down <projectName>")
  .description("下载文档")
  .action((p) => {
    actions.downFile(p);
  });

program.parse(process.argv);
